package com.example;

import com.example.listener.CloseListener;
import com.example.listener.StartListener;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.example.mapper")
public class EducationalAdministrationSystemApplication {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(EducationalAdministrationSystemApplication.class);
        springApplication.addListeners(new StartListener());
        springApplication.addListeners(new CloseListener());
        springApplication.run(args);
    }
}
